//
//  BaseVC.swift
//  NewDelivery
//
//  Created by 天下宅 on 2016/11/7.
//  Copyright © 2016年 天下宅. All rights reserved.
//

import UIKit

class BaseVC: UIViewController,WKNavViewProtocol {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
    func navBtnClick(WithType type: WKNavViewClickType) {
        
        switch type {
        case .left:
            if (self.navigationController != nil) {
                self.navigationController!.popViewController(animated: true)
            }
            else
            {
                self.dismiss(animated: true, completion: nil)
            }
        
        default:
            break
        }
        

    }
    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
